//
//  QADetailListCell.h
//  BaseProject
//
//  Created by 王洋 on 2020/12/11.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonAnswerModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, QADetailSectionType) {
    //优质
    QADetailSectionType_highQuality,
    //精彩
    ServiceCatNaviType_marvellous,
};

@interface QADetailListCell : UITableViewCell


//商家标签
@property (weak, nonatomic) IBOutlet UIImageView *storeIcon;
//优质、精选标签
@property (weak, nonatomic) IBOutlet UIImageView *QATagIcon;

@property (weak, nonatomic) IBOutlet UIButton *AQThumbBtn;


@property (weak, nonatomic) IBOutlet UIImageView *userIcon;

@property (weak, nonatomic) IBOutlet UILabel *userName;

@property (weak, nonatomic) IBOutlet UILabel *QATimeLab;

@property (weak, nonatomic) IBOutlet UILabel *QAContentLab;

@property (nonatomic, copy) void(^QADetailListCellBlock)(void);


- (void)fillWithModel:(CommonAnswerModel *)model Type:(QADetailSectionType)type;

+ (CGFloat)calculateHeightWithModel:(CommonAnswerModel *)model;

@end

NS_ASSUME_NONNULL_END
